package org.me.utils;

import java.util.ArrayList;

public abstract class EventDispatcher<E> {
	public static ArrayList<EventListener> listeners = new ArrayList<EventListener>();
	
	public synchronized static void addListener(EventListener listener){
		listeners.add(listener);
	}
	public synchronized static void removeEvent(EventListener listener){
		listeners.remove(listener);
	}
	public abstract void fireEvent(E e);
}
